# -*- coding: utf-8 -*-
"""
Created on Tue Apr  6 11:15:34 2021

@author: hp
"""

import requests;
from lxml import html;
import pandas as pd;

URL_PATH = "https://wenku.baidu.com/view/765179b2657d27284b73f242336c1eb91b373327.html";
headers = {'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36'}

html_page = requests.get(URL_PATH,headers = headers);

doc = html.fromstring(html_page.text);
mytext = doc.xpath("//div[@class='reader-txt-layer']");
#print(mytext)
for node in mytext : 
    print(mytext);
        
